package com.qm.hibernate;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Tpost entity. @author MyEclipse Persistence Tools
 */

public class Tpost implements java.io.Serializable {

	// Fields

	private Integer id;
	private Tuser tuser;
	private String title;
	private String content;
	private Date time;
	private String class_;
	private String section;
	private Integer commentCount;
	private Set tpostcomments = new HashSet(0);
	private Set tpostcomments_1 = new HashSet(0);

	// Constructors

	/** default constructor */
	public Tpost() {
	}

	/** minimal constructor */
	public Tpost(Tuser tuser, String title, String content, Date time,
			Integer commentCount) {
		this.tuser = tuser;
		this.title = title;
		this.content = content;
		this.time = time;
		this.commentCount = commentCount;
	}

	/** full constructor */
	public Tpost(Tuser tuser, String title, String content, Date time,
			String class_, String section, Integer commentCount,
			Set tpostcomments, Set tpostcomments_1) {
		this.tuser = tuser;
		this.title = title;
		this.content = content;
		this.time = time;
		this.class_ = class_;
		this.section = section;
		this.commentCount = commentCount;
		this.tpostcomments = tpostcomments;
		this.tpostcomments_1 = tpostcomments_1;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Tuser getTuser() {
		return this.tuser;
	}

	public void setTuser(Tuser tuser) {
		this.tuser = tuser;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getTime() {
		return this.time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public String getClass_() {
		return this.class_;
	}

	public void setClass_(String class_) {
		this.class_ = class_;
	}

	public String getSection() {
		return this.section;
	}

	public void setSection(String section) {
		this.section = section;
	}

	public Integer getCommentCount() {
		return this.commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}

	public Set getTpostcomments() {
		return this.tpostcomments;
	}

	public void setTpostcomments(Set tpostcomments) {
		this.tpostcomments = tpostcomments;
	}

	public Set getTpostcomments_1() {
		return this.tpostcomments_1;
	}

	public void setTpostcomments_1(Set tpostcomments_1) {
		this.tpostcomments_1 = tpostcomments_1;
	}

}